import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import pp.PowerProject;
import properties.AutoBGProperties;
import properties.BatchBGProperties;
import properties.User;
import util.HttpRequest;

public class LoginTest {
    private static final Logger logger = LoggerFactory.getLogger(LoginTest.class);

    public static void main(String[] args) {
        BatchBGProperties autoQDProperties = new BatchBGProperties();
        for (User user : autoQDProperties.getUsers()) {
            PowerProject signer = new PowerProject(new HttpRequest(), AutoBGProperties.newAllAutoProperties(user));
            try {
                signer.login();
            } catch (Exception e) {
                logger.error("用户[{}]异常", user.getName());
            }
        }
    }
}

